
# =============================================================================
# File to set all of the parameters needed for this project
# =============================================================================
from __main__ import *

cdd = {'p':cd}

#Plasma and WIP
cdd['p_d'] = cdd['p'] + r'\Data'
cdd['p_c'] = cdd['p'] + r'\Code\Python'
#Geography
cdd['p_d_geo'] = cdd['p_d'] + r'\Geography'
cdd['p_d_geo_shp'] = cdd['p_d_geo'] + r'\Shapefiles'
cdd['p_d_geo_tcp'] = cdd['p_d_geo'] + r'\TreatedControlPanel'
cdd['p_d_geo_shp_tiger'] = cdd['p_d_geo_shp'] + r'\Tiger'
cdd['p_d_geo_demo'] = cdd['p_d_geo_shp'] + r'\Population Weighted\TigerBlockDemoCensus2010'
#ACS Data
cdd['p_d_acs'] = cdd['p_d'] + r'\ACS'
cdd['p_d_acs_zip'] = cdd['p_d_acs'] + r'\ZCTA'
cdd['p_d_acs_tract'] = cdd['p_d_acs'] + r'\tract'
#Clarity data
cdd['p_d_cl'] = cdd['p_d'] + r'\Clarity'
cdd['p_d_cl_c'] = cdd['p_d_cl'] + r'\Clarity_Raw2Clean'
cdd['p_d_cl_pa'] = cdd['p_d_cl'] + r'\PlasmaAnalysis'
#Safegraph data
cdd['p_d_sg'] = cdd['p_d'] + r'\Safegraph'
cdd['p_d_sg_sample'] = cdd['p_d_sg'] + r'\Sample'
cdd['p_d_sg_pa'] = cdd['p_d_sg'] + r'\PlasmaAnalysis'
cdd['p_d_sg_va'] = cdd['p_d_sg'] + r'\VisitorAnalysis'
cdd['p_d_sg_1s'] = cdd['p_d_sg'] + r'\1stStageAnalysis'
cdd['p_d_sg_pva'] = cdd['p_d_sg'] + r'\PlasmaVisitorAnalysis'
#IRSFFA and SEIC data
cdd['p_d_irsffa'] = cdd['p_d'] + r'\IRSFFA'
#Plasma Center Panel Data
cdd['p_d_pcp'] = cdd['p_d'] + r'\Plasma Center Panel'
#Results folders
cdd['p_r'] = cdd['p'] + r'\Results'
cdd['p_rt'] = cdd['p_r'] + r'\Tables'
cdd['p_rf'] = cdd['p_r'] + r'\Figures'
cdd['p_rm'] = cdd['p_r'] + r'\Models'



# =============================================================================
# Packages
# =============================================================================

#Data and Numerical
import pandas as pd
import numpy as np
import math
from tqdm import tqdm
from joblib import Parallel, delayed
import multiprocessing
import datetime as dt
from dateutil.relativedelta import *
from functools import reduce

#Getting Online Data
#import censusdata
from ftplib import FTP
from joblib import Parallel, delayed

#Regex and Utility
import re
import regex as re2
import time
# from rapidfuzz import fuzz
# import fuzzywuzzy
import tarfile
import zipfile as zf
import functools
import itertools
import unicodedata
from collections import ChainMap
from contextlib import suppress
from functools import reduce
import gc
import glob

#WebRequests
import requests
#import edgar
from lxml import html, etree
from bs4 import BeautifulSoup, NavigableString
#from selectolax.parser import HTMLParser

#Graphing
import networkx as nx
from matplotlib.pyplot import figure
import matplotlib.pyplot as plt
import matplotlib as matplt

#Other
import io
import time
import operator

#Geography
from shapely.geometry import Polygon, Point, MultiPolygon
import geopandas as gpd
from geopy import distance
from geopy.distance import geodesic
from geopy.distance import distance as gpdist
import geopy
import us

#Graphing utilities
import folium
from folium.plugins import BeautifyIcon
from folium import plugins
from IPython.core.display import HTML
import webbrowser
from branca.element import Figure
from folium.plugins import FastMarkerCluster
from folium.plugins import MeasureControl
from folium.plugins import StripePattern
import matplotlib.pyplot as plt
from matplotlib import cm
import seaborn as sns

#Selenium Webdriver
# from selenium import webdriver




